using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityTaskSubtasksCreateExtend
{
		public static TaskSubtasks ToCreateEntity(this RequestTaskSubtasksDto dto)
		{
			return new TaskSubtasks
			{
				TsTaskId = dto.taskId,
				TsTitle = dto.title,
			};
		}
	}
}
